package com.zyh.study.ForestPlus;


import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;

import java.math.BigDecimal;

/**
 * @Classname OrderDetails
 * @Description TODO()
 * @Date 2025-09-05 2:11
 * @Created by 86177
 */
@Data
public class OrderRespSseDTO {
    @JsonProperty("asset_class")
    private String assetClass;

    @JsonProperty("asset_id")
    private String assetId;

    @JsonProperty("client_order_id")
    private String clientOrderId;

    @JsonProperty("commission")
    private BigDecimal commission;

    @JsonProperty("created_at")
    private String createdAt;

    @JsonProperty("expired_at")
    private String expiredAt;

    @JsonProperty("filled_at")
    private String filledAt;

    @JsonProperty("filled_avg_price")
    private BigDecimal filledAvgPrice;

    @JsonProperty("filled_qty")
    private BigDecimal filledQty;

    @JsonProperty("id")
    private String orderId;

    @JsonProperty("limit_price")
    private BigDecimal limitPrice;

    @JsonProperty("qty")
    private BigDecimal quantity;

    @JsonProperty("side")
    private String side;  // buy/sell

    @JsonProperty("status")
    private String status;  // new/partially_filled/filled等

    @JsonProperty("stop_price")
    private BigDecimal stopPrice;

    @JsonProperty("submitted_at")
    private String submittedAt;

    @JsonProperty("symbol")
    private String symbol;  // 交易标的

    @JsonProperty("time_in_force")
    private String timeInForce;  // day/gtc/opg等

    @JsonProperty("type")
    private String orderType;  // market/limit/stop_limit

    @JsonProperty("updated_at")
    private String updatedAt;
}
